package com.eastcom.collection.context


import com.eastcom.collection.tools.db.DbInfo

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentLinkedQueue;

public class ServerContext {
	public static String rootPath
	public static String[] springConfigFiles = ["config/base/base_config.xml","config/base/dao_config.xml","config/base/quartz_job.xml","config/base/service_config.xml"]
	public static List<String> propertyFilePath = new ArrayList<String>()
	public static List<String> scriptFilePath = new ArrayList<String>()
	public static Map<String, DbInfo> dbMap = new ConcurrentHashMap<String, DbInfo>();
	private static final ThreadLocal<String> contextHolder = new ThreadLocal<String>();
	public static void setCustomerType(String customerType) {
		contextHolder.set(customerType);
	}
	public static String getCustomerType() {
		return contextHolder.get();
	}
	public static void clearCustomerType() {
		contextHolder.remove();
	}
}
